/**
 * 这个js是写连接后台的url的根部分
 */
//const baseUrl = 'http://192.168.50.23:7001/xcxapi';
const baseUrl = 'https://cjfx.xuerhua.com:8443/xcxapi';

// 图片的头部
//const picUrl = 'http://192.168.50.23:7001/';
const picUrl = 'https://cjfx.xuerhua.com:8443/';

// 登录地址
const loginUrl = '/user/initUserInfo';
// 查询手机
const getPhone = '/user/getPhone';
// 注册用户
const register = '/register';
// 查询用户
const getUserInfo = '/user/queryUserInfo';
// 初始化用户（wx.login）
const initUser = '/user/initUserInfo';
// 绑定老师
const bindTeacher = '/user/bindTeacher';
// 绑定学生
const bindStudent = '/user/bindStudent';
// 查询正在登分的考试
const regExamList = '/examScore/regExamList';
// 当前学期考试列表（全年级的）
const termExamList = '/examScore/termExamList';
// 班级考试成绩
const classExamScore = '/examScore/classExamScore';
// 班级学生考试成绩
const classStudentExamScore = '/examScore/classStudentExamScore';
// 查询班级教师列表
const getClassTeacherList = '/teacher/classTeacherList';
// 查询班级学生列表
const getClassStudentList = '/student/classStudentList';
// 查询学校列表
const getSchoolList = '/common/schoolList';
// 查询当前学期信息
const getCurrentTerm = '/common/currenTerm';
// 查询学生考试分数
const getStudentExamScore = '/examScore/studentExamScore';
// 查询学生学期考试分数
const getStudentTermExamScore = '/examScore/studentTermExamScore';
// 查询学期列表
const getTermList = '/common/termList';
// 上传成绩
const importScore = '/examScore/importScore';
// 解绑孩子
const unbindStudent = '/user/unbindStudent';
// 当前值周老师
const currDutyTeacher = '/evaClass/currDutyTeacher';
// 查询值日周列表
const dutyWeekList = '/evaClass/dutyWeekList';
// 查询负责人列表
const evaLeaderList = '/evaClass/evaLeaderList';
// 添加附件
const addAttch = '/attach/addAttch';
// 删除附件
const delAttach = '/attach/delAttach';
// 提交打分
const submitReg = '/evaClass/submitReg';
// 打分审核
const regAudit = '/evaClass/regAudit';
// 取消打分
const cancelReg = '/evaClass/cancelReg';
// 获取打分记录列表
const getRegList = '/evaClass/myRegList';
// 获取年级班级
const studentOrganize = '/student/studentOrganize';
// 查看学期打分统计
const itemTotal = '/evaClass/itemTotal';
// 板块学期打分统计
const plateItemTotal = '/evaClass/plateItemTotal';
// 班级学期评分统计
const itemList = '/evaClass/itemList';
// 打分详情
const regDetail = '/evaClass/regDetail';
// 教师学期考试列表
const teacherTermExam = '/examScore/teacherTermExam';
//获取字典数据
const getDictData = '/common/getDictData?type=';

/**
 * 页面内跳转地址
 */
const navigateUrl = {
  rootPath: '/pages/index/index', //主页
  classAddressBook: '/pages/address-book/address-book', //通讯簿
  chatPage: '/pages/', //聊天室 //TODO
  invitePage: '/pages/invite/invite', //邀请页面
}

module.exports = {
  baseUrl: baseUrl,
  picUrl: picUrl,
  navigateUrl: navigateUrl,
  login: baseUrl + loginUrl,
  getPhone: baseUrl + getPhone,
  register: baseUrl + register,
  getUserInfo: baseUrl + getUserInfo,
  initUser: baseUrl + initUser,
  bindTeacher: baseUrl + bindTeacher,
  bindStudent: baseUrl + bindStudent,
  regExamList: baseUrl + regExamList,
  termExamList: baseUrl + termExamList,
  getClassExamScore: baseUrl + classExamScore,
  getClassTeacherList: baseUrl + getClassTeacherList,
  getClassStudentList: baseUrl + getClassStudentList,
  getClassStudentExamScore: baseUrl + classStudentExamScore,
  getSchoolList: baseUrl + getSchoolList,
  getCurrentTerm: baseUrl + getCurrentTerm,
  getStudentExamScore: baseUrl + getStudentExamScore,
  getStudentTermExamScore: baseUrl + getStudentTermExamScore,
  getTermList: baseUrl + getTermList,
  importScore: baseUrl + importScore,
  unbindStudent: baseUrl + unbindStudent,
  currDutyTeacher: baseUrl + currDutyTeacher,
  evaLeaderList: baseUrl + evaLeaderList,
  addAttch: baseUrl + addAttch,
  submitReg: baseUrl + submitReg,
  regAudit: baseUrl + regAudit,
  cancelReg: baseUrl + cancelReg,
  getRegList: baseUrl + getRegList,
  studentOrganize: baseUrl + studentOrganize,
  delAttach: baseUrl + delAttach,
  dutyWeekList: baseUrl + dutyWeekList,
  itemTotal: baseUrl + itemTotal,
  plateItemTotal: baseUrl + plateItemTotal,
  regDetail: baseUrl + regDetail,
  getItemList: baseUrl + itemList,
  teacherTermExam: baseUrl + teacherTermExam,
  getDictData: baseUrl + getDictData,
}